import 'package:flutter/material.dart';

class RadiusPanel extends StatelessWidget {
  final double margin;
  final double padding;
  final double radius;

  @required
  final Widget child;

  RadiusPanel(
      {this.margin: 16.0, this.padding: 16.0, this.radius: 10.0, this.child});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      margin: EdgeInsets.all(margin),
      padding: EdgeInsets.all(padding),
      decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(radius), color: Colors.black12),
      child: child,
    );
  }
}
